package cn.wolfcode.crm.service;


import cn.wolfcode.crm.domain.Accident;
import cn.wolfcode.crm.query.AccidentObjectQuery;
import cn.wolfcode.crm.query.PageResult;

import java.util.List;
import java.util.Map;


public interface IAccidentService {

    void save(Accident accident);

    Accident get(Long id);

    List<Accident> getAll();

    PageResult<Accident> query(AccidentObjectQuery qo);

    /**
     * 改变验证状态
     *
     * @param accident 传入封装进accident的值
     */
    void changeClaimState(Accident accident);

    List<Map> queryCaseItem(AccidentObjectQuery qo);

    /**
     * 此方法为更新备案表正式客户
     * @param accident
     */
    void update(Accident accident);
}
